<!Doctype html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<title>Maven POM | 菜鸟教程</title>

  <meta name='robots' content='max-image-preview:large' />
<link rel='stylesheet' id='classic-theme-styles-css' href='../0/classic-themes.min.css?ver=6.2' type='text/css' media='all' />
<link rel="canonical" href="../maven/maven-pom.html" />
<meta name="keywords" content="Maven POM">
<meta name="description" content="Maven POM  POM( Project Object Model，项目对象模型 ) 是 Maven 工程的基本工作单元，是一个XML文件，包含了项目的基本信息，用于描述项目如何构建，声明项目依赖，等等。  执行任务或目标时，Maven 会在当前目录中查找 POM。它读取 POM，获取所需的配置信息，然后执行目标。  POM 中可以指定以下配置：  项目依赖 插件 执行目标 项目构建 profile 项目版本 项目开发者列表 相关..">
		
	<link rel="shortcut icon" href="https://static.runoob.com/images/favicon.ico">
	<link rel="stylesheet" href="../0/style.css?v=1.170" type="text/css" media="all" />	
	<link rel="stylesheet" href="../0/font-awesome.min.css" media="all" />	
  <!--[if gte IE 9]><!-->
  <script src=""></script>
  <!--<![endif]-->
  <!--[if lt IE 9]>
     <script src=""></script>
     <script src=""></script>
  <![endif]-->
  <link rel="apple-touch-icon" href="https://static.runoob.com/images/icon/mobile-icon.png"/>
  <meta name="apple-mobile-web-app-title" content="菜鸟教程">
</head>
<body>

<!--  头部 -->
<div class="container logo-search">

  <div class="col search row-search-mobile">
    <form action="index.php">
      <input class="placeholder" placeholder="搜索……" name="s" autocomplete="off">
      
    </form>
  </div>

  <div class="row">
    <div class="col logo">
      <h1><a href="../">菜鸟教程 -- 学的不仅是技术，更是梦想！</a></h1>
    </div>
        <div class="col right-list"> 
    <button class="btn btn-responsive-nav btn-inverse" data-toggle="collapse" data-target=".nav-main-collapse" id="pull" style=""> <i class="fa fa-navicon"></i> </button>
    </div>
        
    <div class="col search search-desktop last">
      <div class="search-input" >
      <form action="//www.runoob.com/" target="_blank">
        <input class="placeholder" id="s" name="s" placeholder="搜索……"  autocomplete="off" style="height: 44px;">
      </form>
      
      </div>
    </div>
  </div>
</div>



<!-- 导航栏 -->
<!-- 导航栏 -->
<div class="container navigation">
	<div class="row">
		<div class="col nav">
			<ul class="pc-nav" id="runoob-detail-nav">
				<li><a href="../">首页</a></li>
				<li><a href="../html/html-tutorial.html">HTML</a></li>
				<li><a href="../css/css-tutorial.html">CSS</a></li>
				<li><a href="../js/js-tutorial.html">JavaScript</a></li>
				<li><a href="javascript:void(0);" data-id="vue">Vue</a></li>
				<li><a href="javascript:void(0);" data-id="bootstrap">Bootstrap</a></li>
				<li><a href="../nodejs/nodejs-tutorial.html">NodeJS</a></li>
				<li><a href="../python3/python3-tutorial.html">Python3</a></li>
				<li><a href="../python/python-tutorial.html">Python2</a></li>
				<li><a href="../java/java-tutorial.html">Java</a></li>
				<li><a href="../cprogramming/c-tutorial.html">C</a></li>
				<li><a href="../cplusplus/cpp-tutorial.html">C++</a></li>
				<li><a href="../csharp/csharp-tutorial.html">C#</a></li>
				<li><a href="../go/go-tutorial.html">Go</a></li>
				<li><a href="../sql/sql-tutorial.html">SQL</a></li>
				<li><a href="../linux/linux-tutorial.html">Linux</a></li>
				<li><a href="../jquery/jquery-tutorial.html">jQuery</a></li>
				<li><a href="../browser-history">本地书签</a></li>
				<!--
			
				<li><a href="../w3cnote/knowledge-start.html" style="font-weight: bold;" onclick="_hmt.push(['_trackEvent', '星球', 'click', 'start'])" title="我的圈子">我的圈子</a></li>				
				<li><a href="javascript:;" class="runoob-pop">登录</a></li>
				-->
      		</ul>
			<ul class="mobile-nav">
				<li><a href="../">首页</a></li>
				<li><a href="../html/html-tutorial.html">HTML</a></li>
				<li><a href="../css/css-tutorial.html">CSS</a></li>
				<li><a href="../js/js-tutorial.html">JS</a></li>
				<li><a href="../browser-history">本地书签</a></li>
				<li><a href="javascript:void(0)" class="search-reveal">Search</a> </li>
			</ul>
			
		</div>
	</div>
</div>

<div class="container sub-navigation sub-navigation-articles" style="display:none">
	<div class="row">
		<div class="col nav-sub">
		<ul id="python">
			<li class="cat-item"><a href="../python3/python3-tutorial.html">Python3 教程 <i class="fa fa-external-link" aria-hidden="true"></i></a></li>
			<li class="cat-item"><a href="../python/python-tutorial.html">Python2 教程 <i class="fa fa-external-link" aria-hidden="true"></i></a></li>
		</ul>
		<ul id="vue">
			<li class="cat-item"><a href="../vue3/vue3-tutorial.html">Vue3 教程 <i class="fa fa-external-link" aria-hidden="true"></i></a></li>
			<li class="cat-item"><a href="../vue/vue-tutorial.html">vue2 教程 <i class="fa fa-external-link" aria-hidden="true"></i></a></li>
		</ul>

		<ul id="bootstrap">
			<li class="cat-item"><a href="../bootstrap/bootstrap-tutorial.html">Bootstrap3 教程 <i class="fa fa-external-link" aria-hidden="true"></i></a></li>
			<li class="cat-item"><a href="../bootstrap4/bootstrap4-tutorial.html">Bootstrap4 教程 <i class="fa fa-external-link" aria-hidden="true"></i></a></li>
			<li class="cat-item"><a href="../bootstrap5/bootstrap5-tutorial.html">Bootstrap5 教程 <i class="fa fa-external-link" aria-hidden="true"></i></a></li>
			<li class="cat-item"><a href="../bootstrap/bootstrap-v2-tutorial.html">Bootstrap2 教程 <i class="fa fa-external-link" aria-hidden="true"></i></a></li>
		</ul>
		</div>
	</div>
</div><!--  内容  -->
<div class="container main">
	<!-- 中间 -->
	<div class="row">
	
<div class="runoob-col-md2">
<div class="left-column">
	<div class="tab" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
	<i class="fa fa-list" aria-hidden="true"></i> 
	<span>Maven 教程</span>
	<a data-cate="224" href="javascript:void(0);" title="夜间模式"  id="moon"><i class="fa fa-moon-o" aria-hidden="true" style="line-height: 28px;font-size: 1.2em;margin: 2px 4px 0;"></i></a>
	<a data-cate="224" style="display:none;" href="javascript:void(0);" title="日间模式"  id="sun" ><i class="fa fa-sun-o" aria-hidden="true" style="line-height: 28px;font-size: 1.2em;margin: 2px 4px 0;line-height: 28px;
}"></i></a>

	</div>
	<div class="sidebar-box gallery-list">
		<div class="design" id="leftcolumn">
						<a target="_top" title="Maven 教程"  href="../maven/maven-tutorial.html" >
			Maven 教程			</a>
						<a target="_top" title="Maven 环境配置"  href="../maven/maven-setup.html" >
			Maven 环境配置			</a>
						<a target="_top" title="Maven POM"  href="../maven/maven-pom.html" >
			Maven POM			</a>
						<a target="_top" title="Maven 构建生命周期"  href="../maven/maven-build-life-cycle.html" >
			Maven 构建生命周期			</a>
						<a target="_top" title="Maven 构建配置文件"  href="../maven/maven-build-profiles.html" >
			Maven 构建配置文件			</a>
						<a target="_top" title="Maven 仓库"  href="../maven/maven-repositories.html" >
			Maven 仓库			</a>
						<a target="_top" title="Maven 插件"  href="../maven/maven-plugins.html" >
			Maven 插件			</a>
						<a target="_top" title="Maven 构建 Java 项目"  href="../maven/maven-creating-project.html" >
			Maven 构建 Java 项目			</a>
						<a target="_top" title="Maven 构建 &#038; 项目测试"  href="../maven/maven-build-test-project.html" >
			Maven 构建 & 项目测试			</a>
						<a target="_top" title="Maven 引入外部依赖"  href="../maven/maven-external-dependencies.html" >
			Maven 引入外部依赖			</a>
						<a target="_top" title="Maven 项目模板"  href="../maven/project-templates.html" >
			Maven 项目模板			</a>
						<a target="_top" title="Maven 项目文档"  href="../maven/maven-project-documents.html" >
			Maven 项目文档			</a>
						<a target="_top" title="Maven 快照(SNAPSHOT)"  href="../maven/maven-snapshots.html" >
			Maven 快照(SNAPSHOT)			</a>
						<a target="_top" title="Maven 自动化构建"  href="../maven/maven-build-automation.html" >
			Maven 自动化构建			</a>
						<a target="_top" title="Maven 依赖管理"  href="../maven/maven-manage-dependencies.html" >
			Maven 依赖管理			</a>
						<a target="_top" title="Maven 自动化部署"  href="../maven/maven-deployment-automation.html" >
			Maven 自动化部署			</a>
						<a target="_top" title="Maven Web 应用"  href="../maven/maven-web-application.html" >
			Maven Web 应用			</a>
						<a target="_top" title="Maven Eclipse"  href="../maven/maven-eclipse.html" >
			Maven Eclipse			</a>
						<a target="_top" title="Maven  NetBeans"  href="../maven/maven-netbeans.html" >
			Maven  NetBeans			</a>
						<a target="_top" title="Maven  IntelliJ"  href="../maven/maven-intellij.html" >
			Maven  IntelliJ			</a>
				
		</div>
	</div>	
</div>
</div>	<div class="col middle-column">
		
	
	<div class="article">
		
		<div class="previous-next-links">
			<div class="previous-design-link"><i style="font-size:16px;" class="fa fa-arrow-left" aria-hidden="true"></i> <a href="../maven/maven-setup.html" rel="prev"> Maven 环境配置</a> </div>
			<div class="next-design-link"><a href="../maven/maven-build-life-cycle.html" rel="next"> Maven 构建生命周期</a> <i style="font-size:16px;" class="fa fa-arrow-right" aria-hidden="true"></i></div>
		</div>
<div class="article-heading-ad" style="display: block;">
<script async src=""
     crossorigin="anonymous"></script>
<!-- 728*90 固定 -->
<ins class="adsbygoogle"
     style="display:inline-block;width:728px;height:90px"
     data-ad-client="ca-pub-5751451760833794"
     data-ad-slot="2147566827"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
		</div>
		<div class="article-body">
		
			<div class="article-intro" id="content">
			
			<h1>Maven POM
</h1>
<p>POM( Project Object Model，项目对象模型 ) 是 Maven 工程的基本工作单元，是一个XML文件，包含了项目的基本信息，用于描述项目如何构建，声明项目依赖，等等。</p>

<p>执行任务或目标时，Maven 会在当前目录中查找 POM。它读取 POM，获取所需的配置信息，然后执行目标。</p>

<p>POM 中可以指定以下配置：</p>
<ul class="list">
<li>项目依赖</li>
<li>插件</li>
<li>执行目标</li>
<li>项目构建 profile</li>
<li>项目版本</li>
<li>项目开发者列表</li>
<li>相关邮件列表信息</li>
</ul>

<p>在创建 POM 之前，我们首先需要描述项目组 (groupId), 项目的唯一ID。</p>

<div class="example">
<div class="example_code">
<div class="hl-main"><span class="hl-brackets">&lt;</span><span class="hl-reserved">project</span><span class="hl-code"> </span><span class="hl-var">xmlns</span><span class="hl-code"> = </span><span class="hl-quotes">&quot;</span><span class="hl-string">http://maven.apache.org/POM/4.0.0</span><span class="hl-quotes">&quot;</span><span class="hl-code">
    </span><span class="hl-var">xmlns:xsi</span><span class="hl-code"> = </span><span class="hl-quotes">&quot;</span><span class="hl-string">http://www.w3.org/2001/XMLSchema-instance</span><span class="hl-quotes">&quot;</span><span class="hl-code">
    </span><span class="hl-var">xsi:schemaLocation</span><span class="hl-code"> = </span><span class="hl-quotes">&quot;</span><span class="hl-string">http://maven.apache.org/POM/4.0.0
    http://maven.apache.org/xsd/maven-4.0.0.xsd</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">&gt;</span><span class="hl-code">
 
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 模型版本 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">modelVersion</span><span class="hl-brackets">&gt;</span><span class="hl-code">4.0.0</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">modelVersion</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 公司或者组织的唯一标志，并且配置时生成的路径也是由此生成， 如com.companyname.project-group，maven会将该项目打成的jar包放本地路径：/com/companyname/project-group </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-brackets">&gt;</span><span class="hl-code">com.companyname.project-group</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">groupId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
 
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 项目的唯一ID，一个groupId下面可能多个项目，就是靠artifactId来区分的 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">project</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
 
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 版本号 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">1.0</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">project</span><span class="hl-brackets">&gt;</span></div>
</div>
</div>


<p>所有 POM 文件都需要 project 元素和三个必需字段：groupId，artifactId，version。</p>
<table class="reference">
<thead>
<tr>
  <th>节点</th>
  <th>描述</th>
</tr>
</thead>
<tbody>

<tr>
  <td>project</td>
  <td>工程的根标签。</td>
</tr>
<tr>
  <td>modelVersion</td>
  <td>模型版本需要设置为 4.0。</td>
</tr>

<tr>
  <td>groupId</td>
  <td>这是工程组的标识。它在一个组织或者项目中通常是唯一的。例如，一个银行组织 com.companyname.project-group 拥有所有的和银行相关的项目。</td>
</tr>
<tr>
  <td>artifactId</td>
  <td>这是工程的标识。它通常是工程的名称。例如，消费者银行。groupId 和 artifactId 一起定义了 artifact 在仓库中的位置。</td>
</tr>
<tr>
  <td>version</td>
  <td>
  <p>这是工程的版本号。在 artifact 的仓库中，它用来区分不同的版本。例如：</p>
<pre>com.company.bank:consumer-banking:1.0
com.company.bank:consumer-banking:1.1</pre>
</td>
</tr>
</tbody></table>
<hr><h2>
父（Super）POM</h2>

<p>父（Super）POM是 Maven 默认的 POM。所有的 POM 都继承自一个父 POM（无论是否显式定义了这个父 POM）。父 POM 包含了一些可以被继承的默认设置。因此，当 Maven 发现需要下载 POM 中的 依赖时，它会到 Super POM 中配置的默认仓库 http://repo1.maven.org/maven2 去下载。</p>

<p>Maven 使用 effective pom（Super pom 加上工程自己的配置）来执行相关的目标，它帮助开发者在 pom.xml 中做尽可能少的配置，当然这些配置可以被重写。</p>

<p>使用以下命令来查看 Super POM 默认配置：</p><pre>mvn help:effective-pom</pre>

<p>接下来我们创建目录 MVN/project，在该目录下创建 pom.xml，内容如下：</p>

<div class="example">
<div class="example_code">
<div class="hl-main"><span class="hl-brackets">&lt;</span><span class="hl-reserved">project</span><span class="hl-code"> </span><span class="hl-var">xmlns</span><span class="hl-code"> = </span><span class="hl-quotes">&quot;</span><span class="hl-string">http://maven.apache.org/POM/4.0.0</span><span class="hl-quotes">&quot;</span><span class="hl-code">
    </span><span class="hl-var">xmlns:xsi</span><span class="hl-code"> = </span><span class="hl-quotes">&quot;</span><span class="hl-string">http://www.w3.org/2001/XMLSchema-instance</span><span class="hl-quotes">&quot;</span><span class="hl-code">
    </span><span class="hl-var">xsi:schemaLocation</span><span class="hl-code"> = </span><span class="hl-quotes">&quot;</span><span class="hl-string">http://maven.apache.org/POM/4.0.0
    http://maven.apache.org/xsd/maven-4.0.0.xsd</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">&gt;</span><span class="hl-code">
 
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 模型版本 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">modelVersion</span><span class="hl-brackets">&gt;</span><span class="hl-code">4.0.0</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">modelVersion</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 公司或者组织的唯一标志，并且配置时生成的路径也是由此生成， 如com.companyname.project-group，maven会将该项目打成的jar包放本地路径：/com/companyname/project-group </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-brackets">&gt;</span><span class="hl-code">com.companyname.project-group</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">groupId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
 
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 项目的唯一ID，一个groupId下面可能多个项目，就是靠artifactId来区分的 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">project</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
 
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 版本号 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">1.0</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">project</span><span class="hl-brackets">&gt;</span></div>
</div>
</div>

<p>在命令控制台，进入 MVN/project 目录，执行以下命令：</p>
<pre>C:\MVN\project&gt;mvn help:effective-pom</pre>
<p>Maven 将会开始处理并显示 effective-pom。</p>

<pre>[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:36 min
[INFO] Finished at: 2018-09-05T11:31:28+08:00
[INFO] Final Memory: 15M/149M
[INFO] ------------------------------------------------------------------------
</pre>
<p>Effective POM 的结果就像在控制台中显示的一样，经过继承、插值之后，使配置生效。</p>
<div class="example">
<div class="example_code">
<div class="hl-main"><span class="hl-brackets">&lt;?</span><span class="hl-reserved">xml</span><span class="hl-code"> </span><span class="hl-var">version</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">1.0</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-var">encoding</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">UTF-8</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">?&gt;</span><span class="hl-code">
</span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> ================================================================= </span><span class="hl-comment">--&gt;</span><span class="hl-code">
</span><span class="hl-comment">&lt;!--</span><span class="hl-comment">                                                                   </span><span class="hl-comment">--&gt;</span><span class="hl-code">
</span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> Generated by Maven Help Plugin on 2012-07-05T11:41:51             </span><span class="hl-comment">--&gt;</span><span class="hl-code">
</span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> See: http://maven.apache.org/plugins/maven-help-plugin/           </span><span class="hl-comment">--&gt;</span><span class="hl-code">
</span><span class="hl-comment">&lt;!--</span><span class="hl-comment">                                                                   </span><span class="hl-comment">--&gt;</span><span class="hl-code">
</span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> ================================================================= </span><span class="hl-comment">--&gt;</span><span class="hl-code">
 
</span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> ================================================================= </span><span class="hl-comment">--&gt;</span><span class="hl-code">
</span><span class="hl-comment">&lt;!--</span><span class="hl-comment">                                                                   </span><span class="hl-comment">--&gt;</span><span class="hl-code">
</span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> Effective POM for project                                         </span><span class="hl-comment">--&gt;</span><span class="hl-code">
</span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 'com.companyname.project-group:project-name:jar:1.0'              </span><span class="hl-comment">--&gt;</span><span class="hl-code">
</span><span class="hl-comment">&lt;!--</span><span class="hl-comment">                                                                   </span><span class="hl-comment">--&gt;</span><span class="hl-code">
</span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> ================================================================= </span><span class="hl-comment">--&gt;</span><span class="hl-code">
 
</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">project</span><span class="hl-code"> </span><span class="hl-var">xmlns</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">http://maven.apache.org/POM/4.0.0</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-var">xmlns:xsi</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">http://www.w3.org/
2001/XMLSchema-instance</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-var">xsi:schemaLocation</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">http://maven.apache.org/POM/4.0.0 h
ttp://maven.apache.org/xsd/maven-4.0.0.xsd</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">&gt;</span><span class="hl-code">
  </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">modelVersion</span><span class="hl-brackets">&gt;</span><span class="hl-code">4.0.0</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">modelVersion</span><span class="hl-brackets">&gt;</span><span class="hl-code">
  </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-brackets">&gt;</span><span class="hl-code">com.companyname.project-group</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">groupId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
  </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">project</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
  </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">1.0</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
  </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">build</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">sourceDirectory</span><span class="hl-brackets">&gt;</span><span class="hl-code">C:\MVN\project\src\main\java</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">sourceDirectory</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">scriptSourceDirectory</span><span class="hl-brackets">&gt;</span><span class="hl-code">src/main/scripts</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">scriptSourceDirectory</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">testSourceDirectory</span><span class="hl-brackets">&gt;</span><span class="hl-code">C:\MVN\project\src\test\java</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">testSourceDirectory</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">outputDirectory</span><span class="hl-brackets">&gt;</span><span class="hl-code">C:\MVN\project\target\classes</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">outputDirectory</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">testOutputDirectory</span><span class="hl-brackets">&gt;</span><span class="hl-code">C:\MVN\project\target\test-classes</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">testOutputDirectory</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">resources</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">resource</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">mergeId</span><span class="hl-brackets">&gt;</span><span class="hl-code">resource-0</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">mergeId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">directory</span><span class="hl-brackets">&gt;</span><span class="hl-code">C:\MVN\project\src\main\resources</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">directory</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">resource</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">resources</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">testResources</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">testResource</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">mergeId</span><span class="hl-brackets">&gt;</span><span class="hl-code">resource-1</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">mergeId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">directory</span><span class="hl-brackets">&gt;</span><span class="hl-code">C:\MVN\project\src\test\resources</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">directory</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">testResource</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">testResources</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">directory</span><span class="hl-brackets">&gt;</span><span class="hl-code">C:\MVN\project\target</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">directory</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">finalName</span><span class="hl-brackets">&gt;</span><span class="hl-code">project-1.0</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">finalName</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">pluginManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-antrun-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">1.3</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-assembly-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.2-beta-2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-clean-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-compiler-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.0.2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-dependency-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.0</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-deploy-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.4</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-ear-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.3.1</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-ejb-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.1</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-install-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-jar-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-javadoc-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.5</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-plugin-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.4.3</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-rar-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-release-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.0-beta-8</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-resources-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.3</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-site-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.0-beta-7</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-source-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.0.4</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-surefire-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.4.3</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-war-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
          </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.1-alpha-2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">pluginManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-help-plugin</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.1.1</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
  </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">build</span><span class="hl-brackets">&gt;</span><span class="hl-code">
  </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">repositories</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">repository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">snapshots</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">enabled</span><span class="hl-brackets">&gt;</span><span class="hl-code">false</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">enabled</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">snapshots</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">central</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">Maven Repository Switchboard</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">http://repo1.maven.org/maven2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">repository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
  </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">repositories</span><span class="hl-brackets">&gt;</span><span class="hl-code">
  </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">pluginRepositories</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">pluginRepository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">releases</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">updatePolicy</span><span class="hl-brackets">&gt;</span><span class="hl-code">never</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">updatePolicy</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">releases</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">snapshots</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">enabled</span><span class="hl-brackets">&gt;</span><span class="hl-code">false</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">enabled</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">snapshots</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">central</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">Maven Plugin Repository</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
      </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">http://repo1.maven.org/maven2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">pluginRepository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
  </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">pluginRepositories</span><span class="hl-brackets">&gt;</span><span class="hl-code">
  </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">reporting</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">outputDirectory</span><span class="hl-brackets">&gt;</span><span class="hl-code">C:\MVN\project\target/site</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">outputDirectory</span><span class="hl-brackets">&gt;</span><span class="hl-code">
  </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">reporting</span><span class="hl-brackets">&gt;</span><span class="hl-code">
</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">project</span><span class="hl-brackets">&gt;</span></div>
</div>
</div>
<p>在上面的 pom.xml 中，你可以看到 Maven 在执行目标时需要用到的默认工程源码目录结构、输出目录、需要的插件、仓库和报表目录。</p>

<p>Maven 的 pom.xml 文件也不需要手工编写。</p>

<p>Maven 提供了大量的原型插件来创建工程，包括工程结构和 pom.xml。</p>
<hr>
<h2>POM 标签大全详解</h2>

<div class="example">
<div class="example_code">
<div class="hl-main"><span class="hl-brackets">&lt;</span><span class="hl-reserved">project</span><span class="hl-code"> </span><span class="hl-var">xmlns</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">http://maven.apache.org/POM/4.0.0</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-var">xmlns:xsi</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">http://www.w3.org/2001/XMLSchema-instance</span><span class="hl-quotes">&quot;</span><span class="hl-code">
    </span><span class="hl-var">xsi:schemaLocation</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">父项目的坐标。如果项目中没有规定某个元素的值，那么父项目中的对应值即为项目的默认值。 坐标包括group ID，artifact ID和 
        version。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">parent</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">被继承的父项目的构件标识符 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">被继承的父项目的全球唯一标识符 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">被继承的父项目的版本 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 父项目的pom.xml文件的相对路径。相对路径允许你选择一个不同的路径。默认值是../pom.xml。Maven首先在构建当前项目的地方寻找父项 
            目的pom，其次在文件系统的这个位置（relativePath位置），然后在本地仓库，最后在远程仓库寻找父项目的pom。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">relativePath</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">parent</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">声明项目描述符遵循哪一个POM模型版本。模型本身的版本很少改变，虽然如此，但它仍然是必不可少的，这是为了当Maven引入了新的特性或者其他模型变更的时候，确保稳定性。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">modelVersion</span><span class="hl-brackets">&gt;</span><span class="hl-code">4.0.0</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">modelVersion</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目的全球唯一标识符，通常使用全限定的包名区分该项目和其他项目。并且构建时生成的路径也是由此生成， 如com.mycompany.app生成的相对路径为：/com/mycompany/app </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-brackets">&gt;</span><span class="hl-code">asia.banseon</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">groupId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 构件的标识符，它和group ID一起唯一标识一个构件。换句话说，你不能有两个不同的项目拥有同样的artifact ID和groupID；在某个 
        特定的group ID下，artifact ID也必须是唯一的。构件是项目产生的或使用的一个东西，Maven为项目产生的构件包括：JARs，源 码，二进制发布和WARs等。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon-maven2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目产生的构件类型，例如jar、war、ear、pom。插件可以创建他们自己的构件类型，所以前面列的不是全部构件类型 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">packaging</span><span class="hl-brackets">&gt;</span><span class="hl-code">jar</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">packaging</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目当前版本，格式为:主版本.次版本.增量版本-限定版本号 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">1.0-SNAPSHOT</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目的名称, Maven产生的文档用 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon-maven</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目主页的URL, Maven产生的文档用 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">http://www.baidu.com/banseon</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 项目的详细描述, Maven 产生的文档用。 当这个元素能够用HTML格式描述时（例如，CDATA中的文本会被解析器忽略，就可以包含HTML标 
        签）， 不鼓励使用纯文本描述。如果你需要修改产生的web站点的索引页面，你应该修改你自己的索引页文件，而不是调整这里的文档。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">description</span><span class="hl-brackets">&gt;</span><span class="hl-code">A maven project to study maven.</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">description</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">描述了这个项目构建环境中的前提条件。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">prerequisites</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构建该项目或使用该插件所需要的Maven的最低版本 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">maven</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">prerequisites</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目的问题管理系统(Bugzilla, Jira, Scarab,或任何你喜欢的问题管理系统)的名称和URL，本例为 jira </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">issueManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">问题管理系统（例如jira）的名字， </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">system</span><span class="hl-brackets">&gt;</span><span class="hl-code">jira</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">system</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">该项目使用的问题管理系统的URL </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">http://jira.baidu.com/banseon</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">issueManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目持续集成信息 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">ciManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">持续集成系统的名字，例如continuum </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">system</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">该项目使用的持续集成系统的URL（如果持续集成系统有web接口的话）。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构建完成时，需要通知的开发者/用户的配置项。包括被通知者信息和通知条件（错误，失败，成功，警告） </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">notifiers</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">配置一种方式，当构建中断时，以该方式通知用户/开发者 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">notifier</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">传送通知的途径 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">type</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">发生错误时是否通知 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">sendOnError</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构建失败时是否通知 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">sendOnFailure</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构建成功时是否通知 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">sendOnSuccess</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">发生警告时是否通知 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">sendOnWarning</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">不赞成使用。通知发送到哪里 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">address</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">扩展配置项 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">configuration</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">notifier</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">notifiers</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">ciManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目创建年份，4位数字。当产生版权信息时需要使用这个值。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">inceptionYear</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目相关邮件列表信息 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">mailingLists</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">该元素描述了项目相关的所有邮件列表。自动产生的网站引用这些信息。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">mailingList</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">邮件的名称 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">Demo</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">发送邮件的地址或链接，如果是邮件地址，创建文档时，mailto: 链接会被自动创建 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">post</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon@126.com</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">post</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">订阅邮件的地址或链接，如果是邮件地址，创建文档时，mailto: 链接会被自动创建 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">subscribe</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon@126.com</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">subscribe</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">取消订阅邮件的地址或链接，如果是邮件地址，创建文档时，mailto: 链接会被自动创建 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">unsubscribe</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon@126.com</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">unsubscribe</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">你可以浏览邮件信息的URL </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">archive</span><span class="hl-brackets">&gt;</span><span class="hl-code">http:/hi.baidu.com/banseon/demo/dev/</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">archive</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">mailingList</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">mailingLists</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目开发者列表 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">developers</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">某个项目开发者的信息 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">developer</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">SCM里项目开发者的唯一标识符 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">HELLO WORLD</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目开发者的全名 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目开发者的email </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">email</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon@126.com</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">email</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目开发者的主页的URL </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目开发者在项目中扮演的角色，角色元素描述了各种角色 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">roles</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">role</span><span class="hl-brackets">&gt;</span><span class="hl-code">Project Manager</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">role</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">role</span><span class="hl-brackets">&gt;</span><span class="hl-code">Architect</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">role</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">roles</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目开发者所属组织 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">organization</span><span class="hl-brackets">&gt;</span><span class="hl-code">demo</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">organization</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目开发者所属组织的URL </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">organizationUrl</span><span class="hl-brackets">&gt;</span><span class="hl-code">http://hi.baidu.com/banseon</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">organizationUrl</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目开发者属性，如即时消息如何处理等 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">properties</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dept</span><span class="hl-brackets">&gt;</span><span class="hl-code">No</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dept</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">properties</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目开发者所在时区， -11到12范围内的整数。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">timezone</span><span class="hl-brackets">&gt;</span><span class="hl-code">-5</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">timezone</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">developer</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">developers</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目的其他贡献者列表 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">contributors</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目的其他贡献者。参见developers/developer元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">contributor</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">email</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">organization</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">organizationUrl</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">roles</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">timezone</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">properties</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">contributor</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">contributors</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">该元素描述了项目所有License列表。 应该只列出该项目的license列表，不要列出依赖项目的 license列表。如果列出多个license，用户可以选择它们中的一个而不是接受所有license。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">licenses</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">描述了项目的license，用于生成项目的web站点的license页面，其他一些报表和validation也会用到该元素。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">license</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">license用于法律上的名称 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">Apache 2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">官方的license正文页面的URL </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">http://www.baidu.com/banseon/LICENSE-2.0.txt</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目分发的主要方式： repo，可以从Maven库下载 manual， 用户必须手动下载和安装依赖 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">distribution</span><span class="hl-brackets">&gt;</span><span class="hl-code">repo</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">distribution</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">关于license的补充信息 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">comments</span><span class="hl-brackets">&gt;</span><span class="hl-code">A business-friendly OSS license</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">comments</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">license</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">licenses</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">SCM(Source Control Management)标签允许你配置你的代码库，供Maven web站点和其它插件使用。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">scm</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">SCM的URL,该URL描述了版本库和如何连接到版本库。欲知详情，请看SCMs提供的URL格式和列表。该连接只读。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">connection</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            scm:svn:http://svn.baidu.com/banseon/maven/banseon/banseon-maven2-trunk(dao-trunk)
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">connection</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">给开发者使用的，类似connection元素。即该连接不仅仅只读 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">developerConnection</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            scm:svn:http://svn.baidu.com/banseon/maven/banseon/dao-trunk
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">developerConnection</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">当前代码的标签，在开发阶段默认为HEAD </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">tag</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">指向项目的可浏览SCM库（例如ViewVC或者Fisheye）的URL。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">http://svn.baidu.com/banseon</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">scm</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">描述项目所属组织的各种属性。Maven产生的文档用 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">organization</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">组织的全名 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">demo</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">组织主页的URL </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">http://www.baidu.com/banseon</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">organization</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构建项目需要的信息 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">build</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">该元素设置了项目源码目录，当构建项目的时候，构建系统会编译目录里的源码。该路径是相对于pom.xml的相对路径。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">sourceDirectory</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">该元素设置了项目脚本源码目录，该目录和源码目录不同：绝大多数情况下，该目录下的内容 会被拷贝到输出目录(因为脚本是被解释的，而不是被编译的)。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">scriptSourceDirectory</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">该元素设置了项目单元测试使用的源码目录，当测试项目的时候，构建系统会编译目录里的源码。该路径是相对于pom.xml的相对路径。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">testSourceDirectory</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">被编译过的应用程序class文件存放的目录。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">outputDirectory</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">被编译过的测试class文件存放的目录。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">testOutputDirectory</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">使用来自该项目的一系列构建扩展 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">extensions</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">描述使用到的构建扩展。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">extension</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构建扩展的groupId </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构建扩展的artifactId </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构建扩展的版本 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">extension</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">extensions</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">当项目没有规定目标（Maven2 叫做阶段）时的默认值 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">defaultGoal</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">这个元素描述了项目相关的所有资源路径列表，例如和项目相关的属性文件，这些资源被包含在最终的打包文件里。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">resources</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">这个元素描述了项目相关或测试相关的所有资源路径 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">resource</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 描述了资源的目标路径。该路径相对target/classes目录（例如${project.build.outputDirectory}）。举个例 
                    子，如果你想资源在特定的包里(org.apache.maven.messages)，你就必须该元素设置为org/apache/maven /messages。然而，如果你只是想把资源放到源码目录结构里，就不需要该配置。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">targetPath</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">是否使用参数值代替参数名。参数值取自properties元素或者文件里配置的属性，文件在filters元素里列出。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">filtering</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">描述存放资源的目录，该路径相对POM路径 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">directory</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">包含的模式列表，例如**/*.xml. </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">includes</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">排除的模式列表，例如**/*.xml </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">excludes</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">resource</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">resources</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">这个元素描述了单元测试相关的所有资源路径，例如和单元测试相关的属性文件。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">testResources</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">这个元素描述了测试相关的所有资源路径，参见build/resources/resource元素的说明 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">testResource</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">targetPath</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">filtering</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">directory</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">includes</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">excludes</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">testResource</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">testResources</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构建产生的所有文件存放的目录 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">directory</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">产生的构件的文件名，默认值是${artifactId}-${version}。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">finalName</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">当filtering开关打开时，使用到的过滤器属性文件列表 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">filters</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">子项目可以引用的默认插件信息。该插件配置项直到被引用时才会被解析或绑定到生命周期。给定插件的任何本地配置都会覆盖这里的配置 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">pluginManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">使用的插件列表 。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">plugin元素包含描述插件所需要的信息。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">插件在仓库里的group ID </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">插件在仓库里的artifact ID </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">被使用的插件的版本（或版本范围） </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">是否从该插件下载Maven扩展（例如打包和类型处理器），由于性能原因，只有在真需要下载时，该元素才被设置成enabled。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">extensions</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">在构建生命周期中执行一组目标的配置。每个目标可能有不同的配置。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">executions</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">execution元素包含了插件执行需要的信息 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">execution</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">执行目标的标识符，用于标识构建过程中的目标，或者匹配继承过程中需要合并的执行目标 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">绑定了目标的构建生命周期阶段，如果省略，目标会被绑定到源数据里配置的默认阶段 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">phase</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">配置的执行目标 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">goals</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">配置是否被传播到子POM </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">inherited</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">作为DOM对象的配置 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">configuration</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">execution</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">executions</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目引入插件所需要的额外依赖 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见dependencies/dependency元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                            ......
                        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">任何配置是否被传播到子项目 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">inherited</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">作为DOM对象的配置 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">configuration</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">pluginManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">使用的插件列表 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见build/pluginManagement/plugins/plugin元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">extensions</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">executions</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">execution</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">phase</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">goals</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">inherited</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">configuration</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">execution</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">executions</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见dependencies/dependency元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        ......
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">goals</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">inherited</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">configuration</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">build</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">在列的项目构建profile，如果被激活，会修改构建处理 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">profiles</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">根据环境参数或命令行参数激活某个构建处理 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">profile</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构建配置的唯一标识符。即用于命令行激活，也用于在继承时合并具有相同标识符的profile。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">自动触发profile的条件逻辑。Activation是profile的开启钥匙。profile的力量来自于它 能够在某些特定的环境中自动使用某些特定的值；这些环境通过activation元素指定。activation元素并不是激活profile的唯一方式。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">activation</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">profile默认是否激活的标志 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">activeByDefault</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">当匹配的jdk被检测到，profile被激活。例如，1.4激活JDK1.4，1.4.0_2，而!1.4激活所有版本不是以1.4开头的JDK。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">jdk</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">当匹配的操作系统属性被检测到，profile被激活。os元素可以定义一些操作系统相关的属性。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">os</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">激活profile的操作系统的名字 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">Windows XP</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">激活profile的操作系统所属家族(如 'windows') </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">family</span><span class="hl-brackets">&gt;</span><span class="hl-code">Windows</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">family</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">激活profile的操作系统体系结构 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">arch</span><span class="hl-brackets">&gt;</span><span class="hl-code">x86</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">arch</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">激活profile的操作系统版本 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">5.1.2600</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">os</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">如果Maven检测到某一个属性（其值可以在POM中通过${名称}引用），其拥有对应的名称和值，Profile就会被激活。如果值 字段是空的，那么存在属性名称字段就会激活profile，否则按区分大小写方式匹配属性值字段 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">property</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">激活profile的属性的名称 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">mavenVersion</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">激活profile的属性的值 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">value</span><span class="hl-brackets">&gt;</span><span class="hl-code">2.0.3</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">value</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">property</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">提供一个文件名，通过检测该文件的存在或不存在来激活profile。missing检查文件是否存在，如果不存在则激活 profile。另一方面，exists则会检查文件是否存在，如果存在则激活profile。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">file</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">如果指定的文件存在，则激活profile。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">exists</span><span class="hl-brackets">&gt;</span><span class="hl-code">/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">exists</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">如果指定的文件不存在，则激活profile。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">missing</span><span class="hl-brackets">&gt;</span><span class="hl-code">/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">missing</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">file</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">activation</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构建项目所需要的信息。参见build元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">build</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">defaultGoal</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">resources</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">resource</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">targetPath</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">filtering</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">directory</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">includes</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">excludes</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">resource</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">resources</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">testResources</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">testResource</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">targetPath</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">filtering</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">directory</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">includes</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">excludes</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">testResource</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">testResources</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">directory</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">finalName</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">filters</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">pluginManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见build/pluginManagement/plugins/plugin元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">extensions</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">executions</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">execution</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">phase</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">goals</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">inherited</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">configuration</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">execution</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">executions</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见dependencies/dependency元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                                    ......
                                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">goals</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">inherited</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">configuration</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">pluginManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见build/pluginManagement/plugins/plugin元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">extensions</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">executions</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">execution</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">phase</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">goals</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">inherited</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">configuration</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">execution</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">executions</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见dependencies/dependency元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                                ......
                            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">goals</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">inherited</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">configuration</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">build</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">模块（有时称作子项目） 被构建成项目的一部分。列出的每个模块元素是指向该模块的目录的相对路径 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">modules</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">发现依赖和扩展的远程仓库列表。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">repositories</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见repositories/repository元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">repository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">releases</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">enabled</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">updatePolicy</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">checksumPolicy</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">releases</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">snapshots</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">enabled</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">updatePolicy</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">checksumPolicy</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">snapshots</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">layout</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">repository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">repositories</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">发现插件的远程仓库列表，这些插件用于构建和报表 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">pluginRepositories</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">包含需要连接到远程插件仓库的信息.参见repositories/repository元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">pluginRepository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">releases</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">enabled</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">updatePolicy</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">checksumPolicy</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">releases</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">snapshots</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">enabled</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">updatePolicy</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">checksumPolicy</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">snapshots</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">layout</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">pluginRepository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">pluginRepositories</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">该元素描述了项目相关的所有依赖。 这些依赖组成了项目构建过程中的一个个环节。它们自动从项目定义的仓库中下载。要获取更多信息，请看项目依赖机制。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见dependencies/dependency元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    ......
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">不赞成使用. 现在Maven忽略该元素. </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">reports</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">该元素包括使用报表插件产生报表的规范。当用户执行"mvn site"，这些报表就会运行。 在页面导航栏能看到所有报表的链接。参见reporting元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">reporting</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                ......
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">reporting</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见dependencyManagement元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependencyManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见dependencies/dependency元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        ......
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependencyManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见distributionManagement元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">distributionManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                ......
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">distributionManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见properties元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">properties</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">profile</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">profiles</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">模块（有时称作子项目） 被构建成项目的一部分。列出的每个模块元素是指向该模块的目录的相对路径 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">modules</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">发现依赖和扩展的远程仓库列表。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">repositories</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">包含需要连接到远程仓库的信息 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">repository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">如何处理远程仓库里发布版本的下载 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">releases</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">true或者false表示该仓库是否为下载某种类型构件（发布版，快照版）开启。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">enabled</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">该元素指定更新发生的频率。Maven会比较本地POM和远程POM的时间戳。这里的选项是：always（一直），daily（默认，每日），interval：X（这里X是以分钟为单位的时间间隔），或者never（从不）。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">updatePolicy</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">当Maven验证构件校验文件失败时该怎么做：ignore（忽略），fail（失败），或者warn（警告）。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">checksumPolicy</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">releases</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 如何处理远程仓库里快照版本的下载。有了releases和snapshots这两组配置，POM就可以在每个单独的仓库中，为每种类型的构件采取不同的 
                策略。例如，可能有人会决定只为开发目的开启对快照版本下载的支持。参见repositories/repository/releases元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">snapshots</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">enabled</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">updatePolicy</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">checksumPolicy</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">snapshots</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">远程仓库唯一标识符。可以用来匹配在settings.xml文件里配置的远程仓库 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon-repository-proxy</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">远程仓库名称 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon-repository-proxy</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">远程仓库URL，按protocol://hostname/path形式 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">http://192.168.1.169:9999/repository/</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 用于定位和排序构件的仓库布局类型-可以是default（默认）或者legacy（遗留）。Maven 2为其仓库提供了一个默认的布局；然 
                而，Maven 1.x有一种不同的布局。我们可以使用该元素指定布局是default（默认）还是legacy（遗留）。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">layout</span><span class="hl-brackets">&gt;</span><span class="hl-code">default</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">layout</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">repository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">repositories</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">发现插件的远程仓库列表，这些插件用于构建和报表 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">pluginRepositories</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">包含需要连接到远程插件仓库的信息.参见repositories/repository元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">pluginRepository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            ......
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">pluginRepository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">pluginRepositories</span><span class="hl-brackets">&gt;</span><span class="hl-code">
 
 
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">该元素描述了项目相关的所有依赖。 这些依赖组成了项目构建过程中的一个个环节。它们自动从项目定义的仓库中下载。要获取更多信息，请看项目依赖机制。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">依赖的group ID </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-brackets">&gt;</span><span class="hl-code">org.apache.maven</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">groupId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">依赖的artifact ID </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">maven-artifact</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">依赖的版本号。 在Maven 2里, 也可以配置成版本号的范围。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">3.8.1</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">version</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 依赖类型，默认类型是jar。它通常表示依赖的文件的扩展名，但也有例外。一个类型可以被映射成另外一个扩展名或分类器。类型经常和使用的打包方式对应， 
                尽管这也有例外。一些类型的例子：jar，war，ejb-client和test-jar。如果设置extensions为 true，就可以在 plugin里定义新的类型。所以前面的类型的例子不完整。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">type</span><span class="hl-brackets">&gt;</span><span class="hl-code">jar</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">type</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 依赖的分类器。分类器可以区分属于同一个POM，但不同构建方式的构件。分类器名被附加到文件名的版本号后面。例如，如果你想要构建两个单独的构件成 
                JAR，一个使用Java 1.4编译器，另一个使用Java 6编译器，你就可以使用分类器来生成两个单独的JAR构件。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">classifier</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">classifier</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">依赖范围。在项目发布过程中，帮助决定哪些构件被包括进来。欲知详情请参考依赖机制。 - compile ：默认范围，用于编译 - provided：类似于编译，但支持你期待jdk或者容器提供，类似于classpath 
                - runtime: 在执行时需要使用 - test: 用于test任务时使用 - system: 需要外在提供相应的元素。通过systemPath来取得 
                - systemPath: 仅用于范围为system。提供相应的路径 - optional: 当项目自身被依赖时，标注依赖是否传递。用于连续依赖时使用 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">scope</span><span class="hl-brackets">&gt;</span><span class="hl-code">test</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">scope</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">仅供system范围使用。注意，不鼓励使用这个元素，并且在新的版本中该元素可能被覆盖掉。该元素为依赖规定了文件系统上的路径。需要绝对路径而不是相对路径。推荐使用属性匹配绝对路径，例如${java.home}。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">systemPath</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">systemPath</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">当计算传递依赖时， 从依赖构件列表里，列出被排除的依赖构件集。即告诉maven你只依赖指定的项目，不依赖项目的依赖。此元素主要用于解决版本冲突问题 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">exclusions</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">exclusion</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">spring-core</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">artifactId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-brackets">&gt;</span><span class="hl-code">org.springframework</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">groupId</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">exclusion</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">exclusions</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">可选依赖，如果你在项目B中把C依赖声明为可选，你就需要在依赖于B的项目（例如项目A）中显式的引用对C的依赖。可选依赖阻断依赖的传递性。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">optional</span><span class="hl-brackets">&gt;</span><span class="hl-code">true</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">optional</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">不赞成使用. 现在Maven忽略该元素. </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">reports</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">reports</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">该元素描述使用报表插件产生报表的规范。当用户执行"mvn site"，这些报表就会运行。 在页面导航栏能看到所有报表的链接。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">reporting</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">true，则，网站不包括默认的报表。这包括"项目信息"菜单中的报表。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">excludeDefaults</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">所有产生的报表存放到哪里。默认值是${project.build.directory}/site。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">outputDirectory</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">使用的报表插件和他们的配置。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">plugin元素包含描述报表插件需要的信息 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">报表插件在仓库里的group ID </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">报表插件在仓库里的artifact ID </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">被使用的报表插件的版本（或版本范围） </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">任何配置是否被传播到子项目 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">inherited</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">报表插件的配置 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">configuration</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">一组报表的多重规范，每个规范可能有不同的配置。一个规范（报表集）对应一个执行目标 。例如，有1，2，3，4，5，6，7，8，9个报表。1，2，5构成A报表集，对应一个执行目标。2，5，8构成B报表集，对应另一个执行目标 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">reportSets</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">表示报表的一个集合，以及产生该集合的配置 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">reportSet</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">报表集合的唯一标识符，POM继承时用到 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">产生报表集合时，被使用的报表的配置 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">configuration</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">配置是否被继承到子POMs </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">inherited</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">这个集合里使用到哪些报表 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
                        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">reports</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
                    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">reportSet</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">reportSets</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugin</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">plugins</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">reporting</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 继承自该项目的所有子项目的默认依赖信息。这部分的依赖信息不会被立即解析,而是当子项目声明一个依赖（必须描述group ID和 artifact 
        ID信息），如果group ID和artifact ID以外的一些信息没有描述，则通过group ID和artifact ID 匹配到这里的依赖，并使用这里的依赖信息。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependencyManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">参见dependencies/dependency元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                ......
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependency</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependencies</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">dependencyManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目分发信息，在执行mvn deploy后表示要发布的位置。有了这些信息就可以把网站部署到远程服务器或者把构件部署到远程仓库。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">distributionManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">部署项目产生的构件到远程仓库需要的信息 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">repository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">是分配给快照一个唯一的版本号（由时间戳和构建流水号）？还是每次都使用相同的版本号？参见repositories/repository元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">uniqueVersion</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon-maven2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon maven2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">file://${basedir}/target/deploy</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">layout</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">repository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构件的快照部署到哪里？如果没有配置该元素，默认部署到repository元素配置的仓库，参见distributionManagement/repository元素 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">snapshotRepository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">uniqueVersion</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon-maven2</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">Banseon-maven2 Snapshot Repository</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">scp://svn.baidu.com/banseon:/usr/local/maven-snapshot</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">layout</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">snapshotRepository</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">部署项目的网站需要的信息 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">site</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">部署位置的唯一标识符，用来匹配站点和settings.xml文件里的配置 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">banseon-site</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">id</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">部署位置的名称 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">business api website</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">name</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">部署位置的URL，按protocol://hostname/path形式 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">
                scp://svn.baidu.com/banseon:/var/www/localhost/banseon-web
            </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">url</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">site</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">项目下载页面的URL。如果没有该元素，用户应该参考主页。使用该元素的原因是：帮助定位那些不在仓库里的构件（由于license限制）。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">downloadUrl</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">如果构件有了新的group ID和artifact ID（构件移到了新的位置），这里列出构件的重定位信息。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">relocation</span><span class="hl-brackets">&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构件新的group ID </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">groupId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构件新的artifact ID </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">artifactId</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">构件新的版本号 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">version</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
            </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">显示给用户的，关于移动的额外信息，例如原因。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
            </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">message</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">relocation</span><span class="hl-brackets">&gt;</span><span class="hl-code">
        </span><span class="hl-comment">&lt;!--</span><span class="hl-comment"> 给出该构件在远程仓库的状态。不得在本地项目中设置该元素，因为这是工具自动更新的。有效的值有：none（默认），converted（仓库管理员从 
            Maven 1 POM转换过来），partner（直接从伙伴Maven 2仓库同步过来），deployed（从Maven 2实例部 署），verified（被核实时正确的和最终的）。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
        </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">status</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">distributionManagement</span><span class="hl-brackets">&gt;</span><span class="hl-code">
    </span><span class="hl-comment">&lt;!--</span><span class="hl-comment">以值替代名称，Properties可以在整个POM中使用，也可以作为触发条件（见settings.xml配置文件里activation元素的说明）。格式是&lt;name&gt;value&lt;/name&gt;。 </span><span class="hl-comment">--&gt;</span><span class="hl-code">
    </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">properties</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code">
</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">project</span><span class="hl-brackets">&gt;</span></div>
</div>
</div>			<!-- 其他扩展 -->
						
			</div>
			
		</div>
		
		<div class="previous-next-links">
			<div class="previous-design-link"><i style="font-size:16px;" class="fa fa-arrow-left" aria-hidden="true"></i> <a href="../maven/maven-setup.html" rel="prev"> Maven 环境配置</a> </div>
			<div class="next-design-link"><a href="../maven/maven-build-life-cycle.html" rel="next"> Maven 构建生命周期</a> <i style="font-size:16px;" class="fa fa-arrow-right" aria-hidden="true"></i></div>
		</div>
		<!-- 笔记列表 -->
		<style>
.wrapper {
  /*text-transform: uppercase; */
  background: #ececec;
  color: #555;
  cursor: help;
  font-family: "Gill Sans", Impact, sans-serif;
  font-size: 20px;
  position: relative;
  text-align: center;
  width: 200px;
  -webkit-transform: translateZ(0); /* webkit flicker fix */
  -webkit-font-smoothing: antialiased; /* webkit text rendering fix */
}

.wrapper .tooltip {
  white-space: nowrap;
  font-size: 14px;
  text-align: left;
  background: #96b97d;
  bottom: 100%;
  color: #fff;
  display: block;
  left: -25px;
  margin-bottom: 15px;
  opacity: 0;
  padding: 14px;
  pointer-events: none;
  position: absolute;
  
  -webkit-transform: translateY(10px);
     -moz-transform: translateY(10px);
      -ms-transform: translateY(10px);
       -o-transform: translateY(10px);
          transform: translateY(10px);
  -webkit-transition: all .25s ease-out;
     -moz-transition: all .25s ease-out;
      -ms-transition: all .25s ease-out;
       -o-transition: all .25s ease-out;
          transition: all .25s ease-out;
  -webkit-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
     -moz-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
      -ms-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
       -o-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
          box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
}
.tooltip a {
	color:#fff;
}
/* This bridges the gap so you can mouse into the tooltip without it disappearing */
.wrapper .tooltip:before {
  bottom: -20px;
  content: " ";
  display: block;
  height: 20px;
  left: 0;
  position: absolute;
  width: 100%;
}  

/* CSS Triangles - see Trevor's post */
.wrapper .tooltip:after {
  border-left: solid transparent 10px;
  border-right: solid transparent 10px;
  border-top: solid #96b97d 10px;
  bottom: -10px;
  content: " ";
  height: 0;
  left: 20%;
  margin-left: -13px;
  position: absolute;
  width: 0;
}
.wrapper .tooltip1 {
	margin-left: 50px;
	padding-top: 0px;
}
/*
.wrapper:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
  -webkit-transform: translateY(0px);
     -moz-transform: translateY(0px);
      -ms-transform: translateY(0px);
       -o-transform: translateY(0px);
          transform: translateY(0px);
}
*/
/* IE can just show/hide with no transition */
.lte8 .wrapper .tooltip {
  display: none;
}

.lte8 .wrapper:hover .tooltip {
  display: block;
}

</style>

<link rel="stylesheet" href="../0/upvotejs.css">
<script src=""></script>
<script src=""></script>
<div id="respond" class="no_webshot"> 
		<div class="comment-signarea" style=" padding: 20px 20px;"> 
	<h3 class="text-muted" id="share_code" style="color: #799961;"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 点我分享笔记</h3>
	<!--
	<p style="font-size:14px;">笔记需要是本篇文章的内容扩展！</p><br>
	<p style="font-size:12px;"><a href="../tougao" target="_blank">文章投稿，可点击这里</a></p>
	<p style="font-size:14px;"><a href="../w3cnote/runoob-user-test-intro.html#invite" target="_blank">注册邀请码获取方式</a></p>
		<h3 class="text-muted"><i class="fa fa-info-circle" aria-hidden="true"></i> 分享笔记前必须<a href="javascript:;" class="runoob-pop">登录</a>！</h3>
		<p><a href="../w3cnote/runoob-user-test-intro.html#invite" target="_blank">注册邀请码获取方式</a></p>-->
	</div>
		
	<form action="/wp-content/themes/runoob/option/addnote.php" method="post" id="commentform" style="display:none;">
		<div class="comt">
			<div class="comt-title">
				<i style="font-size:36px;" class="fa fa-user-circle" aria-hidden="true"></i>				<p><a id="cancel-comment-reply-link" href="javascript:;">取消</a></p>
			</div>
			<div class="comt-box">
			<div id="mded"></div>
			
				<div class="comt-ctrl">
					<div class="comt-tips"><input type='hidden' name='comment_post_ID' value='20636' id='comment_post_ID' />
<input type='hidden' name='comment_parent' id='comment_parent' value='0' />
</div>
					<button type="submit" name="submit" id="submit" tabindex="5"><i class="fa fa-pencil" aria-hidden="true"></i> 分享笔记</button>
				</div>
			</div>
		
				
					<div class="comt-comterinfo"> 
						<ul id="comment-author-info">
							<li class="form-inline"><label class="hide" for="author">昵称</label><input class="ipt" type="text" name="author" id="author" value="" tabindex="2" placeholder="昵称"><span class="text-muted">昵称 (必填)</span></li>
							<li class="form-inline"><label class="hide" for="email">邮箱</label><input class="ipt" type="text" name="email" id="email" value="" tabindex="3" placeholder="邮箱"><span class="text-muted">邮箱 (必填)</span></li>
							<li class="form-inline"><label class="hide" for="url">引用地址</label><input class="ipt" type="text" name="url" id="url" value="" tabindex="4" placeholder="引用地址"><span class="text-muted">引用地址</span></li>
						</ul>
					</div>
				
			
		</div>

	</form>
	</div>
<script type="text/javascript">
$(function() {
	//初始化编辑器
	
	var editor = new Simditor({
	  textarea: $('#mded'),
	  placeholder: '写笔记...',
	  upload:false,
	 // upload: {url:'/api/comment_upload_file.php',params: null,fileKey: 'upload_file',connectionCount: 1,leaveConfirm: '文件正在上传，您确定离开?'},
	  defaultImage: 'https://www.runoob.com/images/logo.png',
	  codeLanguages: '',
	  autosave: 'editor-content',
	  toolbar: [  'bold','code','ul','ol','image' ]
	});
	editor.on('selectionchanged', function() {
		$(".code-popover").hide();
	});

	// 提交数据
	$("#share_code").click(function() {
		$(".comment-signarea").hide();
		$("#commentform").show();
		
	});
	$("#user_add_note").click(function() {
		$(".comment-signarea").hide();
		$("#commentform").show();
		$('html, body').animate({
       	    scrollTop: $("#respond").offset().top
    	}, 200);
	});

	// 提交笔记
	var commentform=$('#commentform');
	commentform.prepend('<div id="comment-status" style="display:none;" ></div>');
	var statusdiv=$('#comment-status');
	
	commentform.submit(function(e){
		e.preventDefault();
		var noteContent = editor.getValue();
		// console.log(noteContent);
		noteContent = noteContent.replace(/<pre><code>/g,"<pre>");
		noteContent = noteContent.replace(/<\/code><\/pre>/g,"</pre>");
		
		// 系列化表单数据
		var comment_parent = 0;
		var is_user_logged_in = $("#is_user_logged_in").val();
		var comment_post_ID =  20636;
		var _wp_unfiltered_html_comment = $("#_wp_unfiltered_html_comment").val();
		var comment = noteContent;
		var author = $("#author").val();
		var url = $("#url").val();
		var email = $("#email").val();
		if(isBlank(author) && is_user_logged_in==0) {
			statusdiv.html('<p  class="ajax-error">请输入昵称！</p>').show();
		} else if(isBlank(email)  && is_user_logged_in==0) {
			statusdiv.html('<p  class="ajax-error">请输入邮箱！</p>').show();
		} else {
			// var formdata=commentform.serialize() + "&comment=" + noteContent ;
			// 添加状态信息
			statusdiv.html('<p>Processing...</p>').show();
			// 获取表单提交地址
			var formurl=commentform.attr('action');
			
			// 异步提交
			$.ajax({
					type: 'post',
					url: formurl,
					dataType:'json',
					data: {"comment_parent":comment_parent,"comment_post_ID":comment_post_ID, "_wp_unfiltered_html_comment":_wp_unfiltered_html_comment,"comment":comment,"url":url, "email":email,"author":author},
					error: function(XMLHttpRequest, textStatus, errorThrown){
					statusdiv.html('<p class="ajax-error" >数据不完整或表单提交太快了！</p>').show();
				},
				success: function(data, textStatus){
					if(data.errorno=="0") {
						$("#submit").prop('disabled', true);
						statusdiv.html('<p class="ajax-success" >笔记已提交审核，感谢分享笔记！</p>').show();
						alert('笔记已提交审核，感谢分享笔记！');
					}else{
						statusdiv.html('<p class="ajax-error" >'+data.msg+'</p>').show();
					}
					commentform.find('textarea[name=comment]').val('');
				}
			});
			setTimeout(function(){
		        $("#submit").prop('disabled', false);
		    }, 10*1000);
		}
		return false;

	});
	$(".comt-author").click(function() {
		href = $(this).children("a").attr("href");
		if(href.indexOf("/note/")!=-1) {
			var win = window.open(href, '_blank');
  			win.focus();
		}
	});
	$(".comt-meta span").hover(function(){
		$(this).children(".tooltip").css({ "opacity": 1, "pointer-events": "auto"});
	},function(){
		$(this).children(".tooltip").removeAttr("style");
	});
	/*
	$(".wrapper i").hover(function(){
		$(this).siblings(".tooltip").css({ "opacity": 1, "pointer-events": "auto"});
	},function(){
		$(this).siblings(".tooltip").css({ "opacity": 0, "pointer-events": "auto"});
	});
	*/
	//Upvote.create('runoobvote-id', {callback: vote_callback});
	var ajaxurl = 'https://www.runoob.com/wp-admin/admin-ajax.php';
	var callback = function(data) {
		//console.log($('#runoobvote-id').upvote('upvoted'));
		//console.log($('#runoobvote-id').upvote('downvoted'));
		//console.log(data);
		_vote_action = data.action;
		id_arr = data.id.split('-');
		um_id= id_arr[2];
		//console.log(um_id);
		
		var re = /^[1-9]+/;
		if (re.test(um_id)) { 
			var ajax_data = {
				_vote_action: _vote_action,
				action: "pinglun_zan",
				um_id: um_id,
				um_action: "ding"
			};
			//console.log(ajax_data);
			$.post(ajaxurl,ajax_data,function(status){
				//if(status.vote_num>999) {
				//	_voteHtml = '<span style="display: block; text-align: center;font-size: 20px; color: #6a737c; margin: 8px 0;">'+kFormatter(status.vote_num) +'</span>';
				//	$("#runoobvote-id-" + um_id + " .count").hide().after(_voteHtml);
				//}
				
			});
		}
	};
	if($('#comments').length && $('.upvotejs').length){
		$('.upvotejs').upvote({id: 20636, callback: callback});
	
		$.post(ajaxurl,{"action":"pinglun_zan","postid":20636},function(data){  
			$(data).each(function(key,value) {
				$("#runoobvote-id-" + value.commid + " .upvote").addClass(value.upvotejs_class);
				$("#runoobvote-id-" + value.commid + " .downvote").addClass(value.downvote_class);
				$("#runoobvote-id-" + value.commid + " .count").text(value.upvote_count);
			})
		},'json');
		
	}
	
	
});
function isBlank(str) {
    return (!str || /^\s*$/.test(str));
}
function kFormatter(num) {
	// return num;
    return Math.abs(num) > 999 ? Math.sign(num)*((Math.abs(num)/1000).toFixed(1)) + 'k' : Math.sign(num)*Math.abs(num)
}

</script>

<link rel="stylesheet" href="../0/qa.css?1.44">
<link rel="stylesheet" type="text/css" href="../0/simditor.min.css" />
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
		<div class="sidebar-box ">
				

<style>	
.responsive_ad1 { display:none; }
@media(min-width: 800px) { .responsive_ad1 {  display:block;margin:0 auto;} }
</style>
<div id="ad-336280" >

<script async src=""
     crossorigin="anonymous"></script>
<!-- 移动版 自动调整 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-5751451760833794"
     data-ad-slot="1691338467"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
		</div>
				</div>
		
	</div>
</div>
	

<!-- 右边栏 -->
<div class="fivecol last right-column">

<style>
.sidebar-tree .double-li {
    width:300px;
}
.sidebar-tree .double-li li {
    width: 44%;
    line-height: 1.5em;
    border-bottom: 1px solid #ccc;
    float: left;
    display: inline;
}
</style>

    
        <div class="sidebar-box re-box re-box-large">
        <div class="sidebar-box recommend-here" style="margin: 0 auto;">
            <a href="javascript:void(0);" style="font-size: 16px; color:#64854c;font-weight:bold;"> <i class="fa fa-list" aria-hidden="true"></i> 分类导航</a>
        </div>
    <div class="sidebar-box sidebar-cate">
        
        <div class="sidebar-tree" >
            <ul><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> HTML / CSS</a><ul class="double-li"><li><a title="HTML 教程" href="../html/html-tutorial.html">HTML 教程</a></li><li><a title="HTML5 教程" href="../html/html5-intro.html">HTML5 教程</a></li><li><a title="CSS 教程" href="../css/css-tutorial.html">CSS 教程</a></li><li><a title="CSS3 教程" href="../css3/css3-tutorial.html">CSS3 教程</a></li><li><a title="Bootstrap3 教程" href="../bootstrap/bootstrap-tutorial.html">Bootstrap3 教程</a></li><li><a title="Bootstrap4 教程" href="../bootstrap4/bootstrap4-tutorial.html">Bootstrap4 教程</a></li><li><a title="Bootstrap5 教程" href="../bootstrap5/bootstrap5-tutorial.html">Bootstrap5 教程</a></li><li><a title="Font Awesome 教程" href="../font-awesome/fontawesome-tutorial.html">Font Awesome 教程</a></li><li><a title="Foundation 教程" href="../foundation/foundation-tutorial.html">Foundation 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> JavaScript</a><ul class="double-li"><li><a title="JavaScript 教程" href="../js/js-tutorial.html">JavaScript 教程</a></li><li><a title="HTML DOM 教程" href="../htmldom/htmldom-tutorial.html">HTML DOM 教程</a></li><li><a title="jQuery 教程" href="../jquery/jquery-tutorial.html">jQuery 教程</a></li><li><a title="AngularJS 教程" href="../angularjs/angularjs-tutorial.html">AngularJS 教程</a></li><li><a title="AngularJS2 教程" href="../angularjs2/angularjs2-tutorial.html">AngularJS2 教程</a></li><li><a title="Vue.js 教程" href="../vue2/vue-tutorial.html">Vue.js 教程</a></li><li><a title="Vue3 教程" href="../vue3/vue3-tutorial.html">Vue3 教程</a></li><li><a title="React 教程" href="../react/react-tutorial.html">React 教程</a></li><li><a title="TypeScript 教程" href="../typescript/ts-tutorial.html">TypeScript 教程</a></li><li><a title="jQuery UI 教程" href="../jqueryui/jqueryui-tutorial.html">jQuery UI 教程</a></li><li><a title="jQuery EasyUI 教程" href="../jeasyui/jqueryeasyui-tutorial.html">jQuery EasyUI 教程</a></li><li><a title="Node.js 教程" href="../nodejs/nodejs-tutorial.html">Node.js 教程</a></li><li><a title="AJAX 教程" href="../ajax/ajax-tutorial.html">AJAX 教程</a></li><li><a title="JSON 教程" href="../json/json-tutorial.html">JSON 教程</a></li><li><a title="Echarts 教程" href="../echarts/echarts-tutorial.html">Echarts 教程</a></li><li><a title="Chart.js 教程" href="../chartjs/chartjs-tutorial.html">Chart.js 教程</a></li><li><a title="Highcharts 教程" href="../highcharts/highcharts-tutorial.html">Highcharts 教程</a></li><li><a title="Google 地图 教程" href="../googleapi/google-maps-basic.html">Google 地图 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> 服务端</a><ul class="double-li"><li><a title="Python 教程" href="../python3/python3-tutorial.html">Python 教程</a></li><li><a title="Python2.x 教程" href="../python/python-tutorial.html">Python2.x 教程</a></li><li><a title="Linux 教程" href="../linux/linux-tutorial.html">Linux 教程</a></li><li><a title="Docker 教程" href="../docker/docker-tutorial.html">Docker 教程</a></li><li><a title="Ruby 教程" href="../ruby/ruby-tutorial.html">Ruby 教程</a></li><li><a title="Java 教程" href="../java/java-tutorial.html">Java 教程</a></li><li><a title="C 教程" href="../c/c-tutorial.html">C 教程</a></li><li><a title="C++ 教程" href="../cplusplus/cpp-tutorial.html">C++ 教程</a></li><li><a title="Perl 教程" href="../perl/perl-tutorial.html">Perl 教程</a></li><li><a title="Servlet 教程" href="../servlet/servlet-tutorial.html">Servlet 教程</a></li><li><a title="JSP 教程" href="../jsp/jsp-tutorial.html">JSP 教程</a></li><li><a title="Lua 教程" href="../lua/lua-tutorial.html">Lua 教程</a></li><li><a title="Rust 教程" href="../rust/rust-tutorial.html">Rust 教程</a></li><li><a title="Scala 教程" href="../scala/scala-tutorial.html">Scala 教程</a></li><li><a title="Go 教程" href="../go/go-tutorial.html">Go 教程</a></li><li><a title="PHP 教程" href="../php/php-tutorial.html">PHP 教程</a></li><li><a title="数据结构与算法" href="../data-structures/data-structures-tutorial.html">数据结构与算法</a></li><li><a title="Django 教程" href="../django/django-tutorial.html">Django 教程</a></li><li><a title="Zookeeper 教程" href="../w3cnote/zookeeper-tutorial.html">Zookeeper 教程</a></li><li><a title="设计模式" href="../design-pattern/design-pattern-tutorial.html">设计模式</a></li><li><a title="正则表达式" href="../regexp/regexp-tutorial.html">正则表达式</a></li><li><a title="Maven 教程" href="../maven/maven-tutorial.html">Maven 教程</a></li><li><a title="Verilog 教程" href="../w3cnote/verilog-tutorial.html">Verilog 教程</a></li><li><a title="ASP 教程" href="../asp/asp-tutorial.html">ASP 教程</a></li><li><a title="AppML 教程" href="../appml/appml-tutorial.html">AppML 教程</a></li><li><a title="VBScript 教程" href="../vbscript/vbscript-tutorial.html">VBScript 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> 数据库</a><ul class="double-li"><li><a title="SQL 教程" href="../sql/sql-tutorial.html">SQL 教程</a></li><li><a title="MySQL 教程" href="../mysql/mysql-tutorial.html">MySQL 教程</a></li><li><a title="PostgreSQL 教程" href="../postgresql/postgresql-tutorial.html">PostgreSQL 教程</a></li><li><a title="SQLite 教程" href="../sqlite/sqlite-tutorial.html">SQLite 教程</a></li><li><a title="MongoDB 教程" href="../mongodb/mongodb-tutorial.html">MongoDB 教程</a></li><li><a title="Redis 教程" href="../redis/redis-tutorial.html">Redis 教程</a></li><li><a title="Memcached 教程" href="../Memcached/Memcached-tutorial.html">Memcached 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> 数据分析</a><ul class="double-li"><li><a title="Python 教程" href="../python3/python3-tutorial.html">Python 教程</a></li><li><a title="NumPy 教程" href="../numpy/numpy-tutorial.html">NumPy 教程</a></li><li><a title="Pandas 教程" href="../pandas/pandas-tutorial.html">Pandas 教程</a></li><li><a title="Matplotlib 教程" href="../matplotlib/matplotlib-tutorial.html">Matplotlib 教程</a></li><li><a title="Scipy 教程" href="../scipy/scipy-tutorial.html">Scipy 教程</a></li><li><a title="R 教程" href="../r/r-tutorial.html">R 教程</a></li><li><a title="Julia 教程" href="../julia/julia-tutorial.html">Julia 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> 移动端</a><ul class="double-li"><li><a title="Android 教程" href="../w3cnote/android-tutorial-intro.html">Android 教程</a></li><li><a title="Swift 教程" href="../swift/swift-tutorial.html">Swift 教程</a></li><li><a title="jQuery Mobile 教程" href="../jquerymobile/jquerymobile-tutorial.html">jQuery Mobile 教程</a></li><li><a title="ionic 教程" href="../ionic/ionic-tutorial.html">ionic 教程</a></li><li><a title="Kotlin 教程" href="../kotlin/kotlin-tutorial.html">Kotlin 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> XML 教程</a><ul class="double-li"><li><a title="XML 教程" href="../xml/xml-tutorial.html">XML 教程</a></li><li><a title="DTD 教程" href="../dtd/dtd-tutorial.html">DTD 教程</a></li><li><a title="XML DOM 教程" href="../dom/dom-tutorial.html">XML DOM 教程</a></li><li><a title="XSLT 教程" href="../xsl/xsl-tutorial.html">XSLT 教程</a></li><li><a title="XPath 教程" href="../xpath/xpath-tutorial.html">XPath 教程</a></li><li><a title="XQuery 教程" href="../xquery/xquery-tutorial.html">XQuery 教程</a></li><li><a title="XLink 教程" href="../xlink/xlink-tutorial.html">XLink 教程</a></li><li><a title="XPointer 教程" href="../xlink/xlink-tutorial.html">XPointer 教程</a></li><li><a title="XML Schema 教程" href="../schema/schema-tutorial.html">XML Schema 教程</a></li><li><a title="XSL-FO 教程" href="../xslfo/xslfo-tutorial.html">XSL-FO 教程</a></li><li><a title="SVG 教程" href="../svg/svg-tutorial.html">SVG 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> ASP.NET</a><ul class="double-li"><li><a title="ASP.NET 教程" href="../aspnet/aspnet-tutorial.html">ASP.NET 教程</a></li><li><a title="C# 教程" href="../csharp/csharp-tutorial.html">C# 教程</a></li><li><a title="Web Pages 教程" href="../aspnet/webpages-intro.html">Web Pages 教程</a></li><li><a title="Razor 教程" href="../aspnet/razor-intro.html">Razor 教程</a></li><li><a title="MVC 教程" href="../aspnet/mvc-intro.html">MVC 教程</a></li><li><a title="Web Forms 教程" href="../aspnet/aspnet-intro.html">Web Forms 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> Web Service</a><ul class="double-li"><li><a title="Web Service 教程" href="../webservices/webservices-tutorial.html">Web Service 教程</a></li><li><a title="WSDL 教程" href="../wsdl/wsdl-tutorial.html">WSDL 教程</a></li><li><a title="SOAP 教程" href="../soap/soap-tutorial.html">SOAP 教程</a></li><li><a title="RSS 教程" href="../rss/rss-tutorial.html">RSS 教程</a></li><li><a title="RDF 教程" href="../rdf/rdf-tutorial.html">RDF 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> 开发工具</a><ul class="double-li"><li><a title="Eclipse 教程" href="../eclipse/eclipse-tutorial.html">Eclipse 教程</a></li><li><a title="Git 教程" href="../git/git-tutorial.html">Git 教程</a></li><li><a title="Svn 教程" href="../svn/svn-tutorial.html">Svn 教程</a></li><li><a title="Markdown 教程" href="../markdown/md-tutorial.html">Markdown 教程</a></li></ul></li><li style="margin: 0;"><a href="javascript:void(0);" class="tit"> 网站建设</a><ul class="double-li"><li><a title="HTTP 教程" href="../http/http-tutorial.html">HTTP 教程</a></li><li><a title="网站建设指南" href="../web/web-buildingprimer.html">网站建设指南</a></li><li><a title="浏览器信息" href="../browsers/browser-information.html">浏览器信息</a></li><li><a title="网站主机教程" href="../hosting/hosting-tutorial.html">网站主机教程</a></li><li><a title="TCP/IP 教程" href="../tcpip/tcpip-tutorial.html">TCP/IP 教程</a></li><li><a title="W3C 教程" href="../w3c/w3c-tutorial.html">W3C 教程</a></li><li><a title="网站品质" href="../quality/quality-tutorial.html">网站品质</a></li></ul></li></ul>            </div>
    
    </div>
    </div>
    <br>
    
    <div class="sidebar-box re-box re-box-large">
        <div class="sidebar-box recommend-here">
            <a href="javascript:void(0);">Advertisement</a>
        </div>
        <div class="re-600160" id="sidebar-right-re">
                <script async src=""></script>
        <!-- 侧栏1 -->
        <ins class="adsbygoogle"
             style="display:inline-block;width:160px;height:600px"
             data-ad-client="ca-pub-5751451760833794"
             data-ad-slot="4106274865"></ins>
        <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
        </script>
                </div>
    </div>
</div></div>

</div>

<script>
var aid = 20636;
function coll() {
	$.post( '/wp-content/themes/runoob/option/user/userinfo.php', {aid:aid, action:"collarticle", opt:'add'},function( data ) {
		if(data.error==0) {
			$("#content").find("h1:first").find("a").attr("href","javascript:void(0);");
			$("#content").find("h1:first").find("img").attr("src","http://www.runoob.com/wp-content/themes/runoob/assets/img/coll2.png").css({width:32+"px",height:32+"px"});
		}
		alert(data.msg);
	},'json');
}
</script>


<!-- 反馈对话框开始 -->
<script src=""></script>
<link rel="stylesheet" href="../0/feedback.css?1.0" />
<script type="text/javascript">
$.feedback({
    ajaxURL: '/feedback/runoob_feedback.php',
	html2canvasURL: '/wp-content/themes/runoob/assets/feedback/stable/2.0/html2canvas.js',
	onClose: function () {
         window.location.reload();
    }
});
</script>
<!-- 反馈对话框结束 -->
<button class="feedback-btn feedback-btn-gray">反馈/建议</button>
<!-- 底部 -->
<div id="footer" class="mar-t50">
   <div class="runoob-block">
    <div class="runoob cf">
     <dl>
      <dt>
       在线实例
      </dt>
      <dd>
       &middot;<a target="_blank" href="../html/html-examples.html">HTML 实例</a>
      </dd>
      <dd>
       &middot;<a target="_blank" href="../css/css-examples.html">CSS 实例</a>
      </dd>
      <dd>
       &middot;<a target="_blank" href="../js/js-examples.html">JavaScript 实例</a>
      </dd>
      <dd>
       &middot;<a target="_blank" href="../ajx/ajax-examples.html">Ajax 实例</a>
      </dd>
       <dd>
       &middot;<a target="_blank" href="../jquery/jquery-examples.html">jQuery 实例</a>
      </dd>
      <dd>
       &middot;<a target="_blank" href="../xml/xml-examples.html">XML 实例</a>
      </dd>
      <dd>
       &middot;<a target="_blank" href="../java/java-examples.html">Java 实例</a>
      </dd>
     
     </dl>
     <dl>
      <dt>
      字符集&工具
      </dt>
      <dd>
       &middot; <a target="_blank" href="../charsets/html-charsets.html">HTML 字符集设置</a>
      </dd>
      <dd>
       &middot; <a target="_blank" href="../tags/html-ascii.html">HTML ASCII 字符集</a>
      </dd>
     <dd>
       &middot; <a target="_blank" href="https://c.runoob.com/front-end/6939/">JS 混淆/加密</a>
      </dd> 
      <dd>
       &middot; <a target="_blank" href="https://c.runoob.com/front-end/6232/">PNG/JPEG 图片压缩</a>
      </dd>
      <dd>
       &middot; <a target="_blank" href="../tags/html-colorpicker.html">HTML 拾色器</a>
      </dd>
      <dd>
       &middot; <a target="_blank" href="..//c.runoob.com/front-end/53">JSON 格式化工具</a>
      </dd>
      <dd>
       &middot; <a target="_blank" href="..//c.runoob.com/front-end/6680/">随机数生成器</a>
      </dd>
     </dl>
     <dl>
      <dt>
       最新更新
      </dt>
                   <dd>
       &middot;
      <a href="../matplotlib/matplotlib-imread.html" title="Matplotlib imread() 方法">Matplotlib imre...</a>
      </dd>
              <dd>
       &middot;
      <a href="../matplotlib/matplotlib-imsave.html" title="Matplotlib imsave() 方法">Matplotlib imsa...</a>
      </dd>
              <dd>
       &middot;
      <a href="../matplotlib/matplotlib-imshow.html" title="Matplotlib imshow() 方法">Matplotlib imsh...</a>
      </dd>
              <dd>
       &middot;
      <a href="../matplotlib/matplotlib-hist.html" title="Matplotlib 直方图">Matplotlib 直方图</a>
      </dd>
              <dd>
       &middot;
      <a href="../python3/python-func-object.html" title="Python object() 函数">Python object()...</a>
      </dd>
              <dd>
       &middot;
      <a href="../python3/python-ai-draw.html" title="Python AI 绘画">Python AI 绘画</a>
      </dd>
              <dd>
       &middot;
      <a href="../w3cnote/cursor-editor.html" title="神辅助 Cursor 编辑器，加入 GPT-4 让编码更轻松！">神辅助 Cursor ...</a>
      </dd>
             </dl>
     <dl>
      <dt>
       站点信息
      </dt>
      <dd>
       &middot;
       <a target="_blank" href="mailto:admin@runoob.com" rel="external nofollow">意见反馈</a>
       </dd>
      <dd>
       &middot;
      <a target="_blank" href="../disclaimer">免责声明</a>
       </dd>
      <dd>
       &middot;
       <a target="_blank" href="../aboutus">关于我们</a>
       </dd>
      <dd>
       &middot;
      <a target="_blank" href="../archives">文章归档</a>
      </dd>
    
     </dl>
    
     <div class="search-share">
      <div class="app-download">
        <div>
         <strong>关注微信</strong>
        </div>
      </div>
      <div class="share">
      <img width="128" height="128" src="/wp-content/themes/runoob/assets/images/qrcode.png" />
       </div>
     </div>
     
    </div>
   </div>
   <div class="w-1000 copyright">
     Copyright &copy; 2013-2023    <strong><a href="../" target="_blank">菜鸟教程</a></strong>&nbsp;
    <strong><a href="../" target="_blank">runoob.com</a></strong> All Rights Reserved. 备案号：<a target="_blank" rel="nofollow" href="https://beian.miit.gov.cn/">闽ICP备15012807号-1</a>
   </div>
  </div>
  <div class="fixed-btn">
    <a class="go-top" href="javascript:void(0)" title="返回顶部"> <i class="fa fa-angle-up"></i></a>
    <a class="qrcode"  href="javascript:void(0)" title="关注我们"><i class="fa fa-qrcode"></i></a>
    <a class="writer" style="display:none" href="javascript:void(0)"   title="标记/收藏"><i class="fa fa-star" aria-hidden="true"></i></a>
    <!-- qrcode modal -->
    <div id="bottom-qrcode" class="modal panel-modal hide fade in">
      <h4>微信关注</h4>
      <div class="panel-body"><img alt="微信关注" width="128" height="128" src="/wp-content/themes/runoob/assets/images/qrcode.png"></div> 
    </div>
  </div>

 <div style="display:none;">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-84264393-2"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-84264393-2');
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?3eec0b7da6548cf07db3bc477ea905ee";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

</div>
<script>
window.jsui={
    www: 'https://www.runoob.com',
    uri: 'https://www.runoob.com/wp-content/themes/runoob'
};
</script>

<script src=""></script>
<script src=""></script>

</body>
</html>